package com.zhongjian.technologycal.mall.bean;

import java.util.List;

/**
 * Created by wei on 2018/2/28.
 */

public class OrdersDetailsBean {


    /**
     * error_code : 0
     * error_message : 成功
     * data : {"id":159,"orderno":"B20180302165639016108462","createtime":"2018-03-02 16:56:39","totalamount":18,"usecoupon":5,"useelecnum":13,"usepointnum":0,"usevipremainnum":0,"freight":0,"realpay":0,"provinceid":35,"cityid":3501,"provincename":"浙江省","regionname":"西湖区","cityname":"杭州市","regionid":350106,"address":"文三西路五联西苑小区106号","receivername":"哈茶","receiverphone":"18657938662","curstatus":0,"expressname":"","expressno":"","orderlines":[{"productname":"测试商品","productId":538,"specname":"测试规格1","productnum":1,"price":18,"photo":"/upload/pics/f07dabbbb83c43ab84768642579d2583.jpg"}]}
     */

    private int error_code;
    private String error_message;
    private DataBean data;

    public int getError_code() {
        return error_code;
    }

    public void setError_code(int error_code) {
        this.error_code = error_code;
    }

    public String getError_message() {
        return error_message;
    }

    public void setError_message(String error_message) {
        this.error_message = error_message;
    }

    public DataBean getData() {
        return data;
    }

    public void setData(DataBean data) {
        this.data = data;
    }

    public static class DataBean {
        /**
         * id : 159
         * orderno : B20180302165639016108462
         * createtime : 2018-03-02 16:56:39
         * totalamount : 18
         * usecoupon : 5
         * useelecnum : 13
         * usepointnum : 0
         * usevipremainnum : 0
         * freight : 0
         * realpay : 0
         * provinceid : 35
         * cityid : 3501
         * provincename : 浙江省
         * regionname : 西湖区
         * cityname : 杭州市
         * regionid : 350106
         * address : 文三西路五联西苑小区106号
         * receivername : 哈茶
         * receiverphone : 18657938662
         * curstatus : 0
         * expressname :
         * expressno :
         * orderlines : [{"productname":"测试商品","productId":538,"specname":"测试规格1","productnum":1,"price":18,"photo":"/upload/pics/f07dabbbb83c43ab84768642579d2583.jpg"}]
         */

        private int id;
        private String orderno;
        private String createtime;
        private double totalamount;
        private double usecoupon;
        private double useelecnum;
        private double usepointnum;
        private double usevipremainnum;
        private double freight;
        private double realpay;
        private int provinceid;
        private int cityid;
        private String provincename;
        private String regionname;
        private String cityname;
        private int regionid;
        private String address;
        private String receivername;
        private String receiverphone;
        private int curstatus;
        private String expressname;
        private String expressno;
        private List<OrderlinesBean> orderlines;

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public String getOrderno() {
            return orderno;
        }

        public void setOrderno(String orderno) {
            this.orderno = orderno;
        }

        public String getCreatetime() {
            return createtime;
        }

        public void setCreatetime(String createtime) {
            this.createtime = createtime;
        }

        public double getTotalamount() {
            return totalamount;
        }

        public void setTotalamount(double totalamount) {
            this.totalamount = totalamount;
        }

        public double getUsecoupon() {
            return usecoupon;
        }

        public void setUsecoupon(double usecoupon) {
            this.usecoupon = usecoupon;
        }

        public double getUseelecnum() {
            return useelecnum;
        }

        public void setUseelecnum(double useelecnum) {
            this.useelecnum = useelecnum;
        }

        public double getUsepointnum() {
            return usepointnum;
        }

        public void setUsepointnum(double usepointnum) {
            this.usepointnum = usepointnum;
        }

        public double getUsevipremainnum() {
            return usevipremainnum;
        }

        public void setUsevipremainnum(double usevipremainnum) {
            this.usevipremainnum = usevipremainnum;
        }

        public double getFreight() {
            return freight;
        }

        public void setFreight(double freight) {
            this.freight = freight;
        }

        public double getRealpay() {
            return realpay;
        }

        public void setRealpay(double realpay) {
            this.realpay = realpay;
        }

        public int getProvinceid() {
            return provinceid;
        }

        public void setProvinceid(int provinceid) {
            this.provinceid = provinceid;
        }

        public int getCityid() {
            return cityid;
        }

        public void setCityid(int cityid) {
            this.cityid = cityid;
        }

        public String getProvincename() {
            return provincename;
        }

        public void setProvincename(String provincename) {
            this.provincename = provincename;
        }

        public String getRegionname() {
            return regionname;
        }

        public void setRegionname(String regionname) {
            this.regionname = regionname;
        }

        public String getCityname() {
            return cityname;
        }

        public void setCityname(String cityname) {
            this.cityname = cityname;
        }

        public int getRegionid() {
            return regionid;
        }

        public void setRegionid(int regionid) {
            this.regionid = regionid;
        }

        public String getAddress() {
            return address;
        }

        public void setAddress(String address) {
            this.address = address;
        }

        public String getReceivername() {
            return receivername;
        }

        public void setReceivername(String receivername) {
            this.receivername = receivername;
        }

        public String getReceiverphone() {
            return receiverphone;
        }

        public void setReceiverphone(String receiverphone) {
            this.receiverphone = receiverphone;
        }

        public int getCurstatus() {
            return curstatus;
        }

        public void setCurstatus(int curstatus) {
            this.curstatus = curstatus;
        }

        public String getExpressname() {
            return expressname;
        }

        public void setExpressname(String expressname) {
            this.expressname = expressname;
        }

        public String getExpressno() {
            return expressno;
        }

        public void setExpressno(String expressno) {
            this.expressno = expressno;
        }

        public List<OrderlinesBean> getOrderlines() {
            return orderlines;
        }

        public void setOrderlines(List<OrderlinesBean> orderlines) {
            this.orderlines = orderlines;
        }

        public static class OrderlinesBean {
            /**
             * productname : 测试商品
             * productId : 538
             * specname : 测试规格1
             * productnum : 1
             * price : 18
             * photo : /upload/pics/f07dabbbb83c43ab84768642579d2583.jpg
             */

            private String productname;
            private int productId;
            private String specname;
            private int productnum;
            private double price;
            private String photo;

            public String getProductname() {
                return productname;
            }

            public void setProductname(String productname) {
                this.productname = productname;
            }

            public int getProductId() {
                return productId;
            }

            public void setProductId(int productId) {
                this.productId = productId;
            }

            public String getSpecname() {
                return specname;
            }

            public void setSpecname(String specname) {
                this.specname = specname;
            }

            public int getProductnum() {
                return productnum;
            }

            public void setProductnum(int productnum) {
                this.productnum = productnum;
            }

            public double getPrice() {
                return price;
            }

            public void setPrice(double price) {
                this.price = price;
            }

            public String getPhoto() {
                return photo;
            }

            public void setPhoto(String photo) {
                this.photo = photo;
            }
        }
    }
}
